package com.gxa.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.common.vo.R;
import com.gxa.modules.pojo.Start_List;
import com.gxa.modules.pojo.Sys_Menu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: zdk
 * Date: 2022/09/12 21:55
 * Description:
 * Version: V1.0
 */
@Repository
public interface StartListMapper extends BaseMapper<Start_List> {

    List<Start_List> findStartListMessage(Integer currentPage, Integer pageSize) ;

    int countSales();

    int delMessage(Integer depart_id);

    Integer updateStartMessage(Integer depart_id);

    //查询装载的售后订单
    List<Start_List> findStartMessageByBeing(Integer currentPage, Integer pageSize,Integer status);
    //查询运货的售后订单
    List<Start_List> findStartMessageByUntreated(Integer currentPage, Integer pageSize,Integer status);
    //查询已完成中的售后订单
    List<Start_List> findStartMessageByProcessed(Integer currentPage, Integer pageSize,Integer status);

    int countStateSales(Integer status);

    Integer addStart(Start_List start_list);

    List<Start_List> findStartByOrder( HashMap map);

    Integer queryCountHigh(HashMap map);
}
